using System;
using System.Collections.Generic;
using System.Text;

namespace MangaDownloader
{
    public class Chapter
    {
        private string _chapterUrl;
        private string _chapterName;
        private int _imageCount;
        private int _imageDownloadedCount;
        private List<string> _imageUrls;
        private const string status = "{0}/{1}";

        

        public string ChapterUrl
        {
            get { return _chapterUrl; }
            set { _chapterUrl = value; }
        }

        public string ChapterName
        {
            get { return _chapterName; }
            set { _chapterName = value; }
        }

        public string Status
        {
            get { return string.Format(status, ImageDownloadedCount, ImageCount); }
        }

        public int ImageCount
        {
            get { return _imageCount; }
            set { _imageCount = value; }
        }

        public int ImageDownloadedCount
        {
            get { return _imageDownloadedCount; }
            set { _imageDownloadedCount = value; }
        }

        public List<string> ImageUrls
        {
            get { return _imageUrls; }
            set { _imageUrls = value; }
        }

        public Chapter()
        {
        }

        public override string ToString()
        {
            return ChapterName + " - " + ChapterUrl;
        }
    }
}
